package com.futer.ssm.service;

import com.futer.ssm.model.*;

import java.util.List;

public interface Service {

    //收藏的接口
    int collect(Collect collect);
    List<Collect> getCollect(CollectExample c);
    int removeCollect(CollectExample collectExample);

    //借阅入口
    int borrowObject(Borrow borrow);
    List<Borrow> getAllBorrow(BorrowExample borrowExample);

    //添加进购物车
    int addShoppingCat(ShoppingCat shoppingCat);
    List<ShoppingCat> getAllShoppingCat(ShoppingCatExample shoppingCatExample);
    int removeShoppingCat(ShoppingCatExample shoppingCat);

    //框架设置
    List<Setting> getSetting(SettingExample settingExample);
    int updateSetting(Setting setting);

    //应用设置
    List<AllApp> getAllApp(AllAppExample allAppExample);
    int deleteApp(AllAppExample allApp);
    int addApplication(AllApp allApp);
    int updateApp(AllApp allAppExample);


    //用户管理
    List<User> getUser(UserExample userExample);
    int addUser(User user);
    int deleteUser(UserExample user);
    int updateUser(User user);

    //验证码的验证
    IdentifyingCode getCode(String email);
    int addCode(IdentifyingCode identifyingCode);
    int deleteCode(String email);
}
